﻿using OA.Model.MyAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.DB
{
    public class TableInfo :BaseInfo
    {
        [Tag(TagEnum.Text, "required", "分组名称", 3, 10)]
        [MaxLength(10)]
        public string Name { get; set; }

        public string ConfigContent { get; set; }

    }

    public class SimpleTableInfo : SimpleInfo
    {
        public string Name { get; set; }

        public static Expression<Func<TableInfo, SimpleTableInfo>> Map = m => new SimpleTableInfo()
        {
            ID = m.ID,
            Name = m.Name
        };
    }
}
